//
//  LoginUser.h
//  AILock
//
//  Created by 谭亚明 on 2020/6/22.
//  Copyright © 2020 tym. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FamilyModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface UserModel : NSObject<NSCoding, NSCopying>

@property(nonatomic,copy) NSString *operationPassword;
@property(nonatomic,copy) NSString *mobile;
@property(nonatomic,assign) NSInteger userId;
@property(nonatomic,copy) NSString *username;
@property(nonatomic,copy) NSString *realName;
@property(nonatomic,copy) NSString *headImgUrl;
@property(nonatomic,copy) NSString *nickname;
@property(nonatomic,assign) NSInteger sex;
@property(nonatomic,copy) NSString *token;
@property(nonatomic,assign)NSInteger type; //1:APP用户  2:游客用户
@property(nonatomic,assign) NSInteger familyUserId;
@property(nonatomic,assign) NSInteger familyRole;

@property(nonatomic,assign) NSInteger fingerprintCount;
@property(nonatomic,assign) NSInteger passwordCount;
@property(nonatomic,assign) NSInteger cardCount;
@property(nonatomic,assign) NSInteger remoteControlCount;
//UI临时使用
@property(nonatomic,assign) BOOL isSelected;

//密码类型
-(NSString*)getTypeStr;

-(NSString*)getRoleStr;


-(NSString*)getEquipmentImage;
@end

NS_ASSUME_NONNULL_END
